package top.hmtools.ckfinder.configuration;

import javax.annotation.PostConstruct;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import top.hmtools.ckfinder.localfile.configuration.LocalFileConfig;

@Configuration
@ConditionalOnClass(value={LocalFileConfig.class})
//@ConditionalOnMissingClass(value={"top.hmtools.ckfinder.configuration.AliyunOSSAutoConfig"})
public class LocalfileAutoConfig {

	@Bean
	public BaseCommandConfig aliyunOssConfig(){
		return new LocalFileConfig();
	}
	
	@PostConstruct
	public void init(){
		System.out.println("@@@@@@@@  LocalfileAutoConfig is inited ");
	}
}
